/*
 * @Description:
 * @Author: dh
 * @Date: 2021-08-19 17:20:34
 * @LastEditors: dh
 * @LastEditTime: 2022-12-28 11:20:51
 */
import { watch, computed } from 'vue';

export default function msgJS(testMsg: any): any {
	const setComputed = computed<string>(() => {
		return testMsg && testMsg.value.substring(2);
	});
	watch(testMsg, () => {
		console.log('%c testMsg改变了,该我做点事了', 'color:deeppink');
	});
	return {
		setComputed,
	};
}
